<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加类型</title>
    <link rel="stylesheet" href="../../static/plugins/layui/css/layui.css" media="all" th:href="@{/plugins/layui/css/layui.css}"/>
    <link rel="stylesheet" href="../../static/plugins/font-awesome/css/font-awesome.min.css" th:href="@{/plugins/font-awesome/css/font-awesome.min.css}">
</head>
<body>
<blockquote class="layui-elem-quote">
    <a onclick="window.location.reload();" style='cursor:pointer;display: inline-block'>
        <img src="../../static/images/refresh.png" height="20" th:src="@{/images/refresh.png}"/>
    </a>&nbsp;
    <a onclick="history.go(-1);" style="color:#009688; cursor:pointer;display: inline-block;margin:5px">类型管理</a>><span style="display: inline-block;margin:5px">添加类型</span>
</blockquote>
<div style="margin-left: 15px;">


    <!--/*@thymesVar id="entity" type="com.example.demo.news.bean.NewsType"*/-->
    <form class="layui-form" action="" th:action="@{/Admin/news/savenewstype}" method="post" th:object="${entity}">


        <input th:field="*{id}" th:if="*{id!=0}" type="hidden">




        <div class="layui-form-item margin-left">
            <div class="layui-inline">
                <label class="layui-form-label">类型名称</label>
                <div class="layui-input-block">
                    <input type="text" name="title" autocomplete="off" placeholder="请输入新闻类型名称" class="layui-input" th:field="*{typeName}" lay-verify="required">
                </div>
            </div>
        </div>



        <div class="layui-form-item margin-left">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="../../static/plugins/layui/layui.js" th:src="@{/plugins/layui/layui.js}"></script>
<script th:inline="javascript">


    layui.use('form', function(){
        var form = layui.form();
        var $ = layui.jquery;

    });
</script>
</body>
</html>